package com.jxtc.enterprise.delivery.dto.login;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 骑手登录信息
 */
@Getter
@Setter
@ToString
public class RiderLoginDTO {
    /**
     * 骑手手机号
     */
    @NotBlank(message = "手机号不能为空")
    @Size(message = "手机号必须为 11 位", min = 11, max = 11)
    private String phone;
    /**
     * 骑手密码
     */
    @NotBlank(message = "密码不能为空")
    private String password;
}
